//引入luch-request 做
import Request from '@/utils/libs/luch-request/index.js'
const $http = new Request()

// #ifndef VUE3
import Vue from 'vue'
import App from './App'
//生产环境去掉提示
Vue.config.productionTip = false
//vue2 挂载http请求
vue.prototype.$http = $http
App.mpType = 'app'

const app = new Vue({
	...App
})
// vue2引入请求封装
require('@/util/request/index')(app)
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
import App from './App.vue'
export function createApp() {
	const app = createSSRApp(App)
	//vue3 挂载http请求
	app.config.globalProperties.$http = $http
	uni.$http = $http
	return {
		app
	}
}
// #endif
